home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Singing Fun! / Sunday Savers: Singing Fun!.iso / mac / Xtras / Buddy API 3.7 / Buddy API Docs.swf / texts / 1582.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  4.1 KB  |  183 lines

  1. 153
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. PrintFile 
  6. --- RECORDSEPARATOR ---
  7. Platform:
  8. --- RECORDSEPARATOR ---
  9.  
  10. --- RECORDSEPARATOR ---
  11. Windows and Macintosh
  12. --- RECORDSEPARATOR ---
  13.  
  14. --- RECORDSEPARATOR ---
  15. Description:
  16. --- RECORDSEPARATOR ---
  17.  
  18. --- RECORDSEPARATOR ---
  19. baPrintFile prints a document, using the program that the file is associated with.
  20. --- RECORDSEPARATOR ---
  21.  
  22. --- RECORDSEPARATOR ---
  23. Usage:
  24. --- RECORDSEPARATOR ---
  25.  
  26. --- RECORDSEPARATOR ---
  27. Result = baPrintFile( FileName )
  28. --- RECORDSEPARATOR ---
  29.  
  30. --- RECORDSEPARATOR ---
  31. Arguments:
  32. --- RECORDSEPARATOR ---
  33.  
  34. --- RECORDSEPARATOR ---
  35. String. 
  36. --- RECORDSEPARATOR ---
  37. FileName is the name of the file to print. The full path name should be supplied.
  38. --- RECORDSEPARATOR ---
  39.  
  40. --- RECORDSEPARATOR ---
  41. Returns:
  42. --- RECORDSEPARATOR ---
  43.  
  44. --- RECORDSEPARATOR ---
  45. Integer. 
  46. --- RECORDSEPARATOR ---
  47. Returns an error code. If the return is less than 32 than an error occurred. 
  48. --- RECORDSEPARATOR ---
  49. Possible errors include: 
  50. --- RECORDSEPARATOR ---
  51. --- RECORDSEPARATOR ---
  52. System was out of memory. 
  53. --- RECORDSEPARATOR ---
  54. --- RECORDSEPARATOR ---
  55. File was not found. 
  56. --- RECORDSEPARATOR ---
  57. --- RECORDSEPARATOR ---
  58. Path was not found. 
  59. --- RECORDSEPARATOR ---
  60. --- RECORDSEPARATOR ---
  61. Sharing or network-protection error. 
  62. --- RECORDSEPARATOR ---
  63. --- RECORDSEPARATOR ---
  64. Library required separate data segments for each task. 
  65. --- RECORDSEPARATOR ---
  66. --- RECORDSEPARATOR ---
  67. There was insufficient memory to start the application. 
  68. --- RECORDSEPARATOR ---
  69. 10 
  70. --- RECORDSEPARATOR ---
  71. Windows version was incorrect. 
  72. --- RECORDSEPARATOR ---
  73. 11 
  74. --- RECORDSEPARATOR ---
  75. Executable file was invalid. Either it was not a Windows application or there was an 
  76. --- RECORDSEPARATOR ---
  77. error in the .EXE image. 
  78. --- RECORDSEPARATOR ---
  79. 12 
  80. --- RECORDSEPARATOR ---
  81. Application was designed for a different operating system. 
  82. --- RECORDSEPARATOR ---
  83. 13 
  84. --- RECORDSEPARATOR ---
  85. Application was designed for MS-DOS 4.0. 
  86. --- RECORDSEPARATOR ---
  87. 14 
  88. --- RECORDSEPARATOR ---
  89. Type of executable file was unknown. 
  90. --- RECORDSEPARATOR ---
  91. 15 
  92. --- RECORDSEPARATOR ---
  93. Attempt was made to load a real
  94. --- RECORDSEPARATOR ---
  95. -mode application (developed for an earlier version 
  96. --- RECORDSEPARATOR ---
  97. of Windows). 
  98. --- RECORDSEPARATOR ---
  99. 16 
  100. --- RECORDSEPARATOR ---
  101. Attempt was made to load a second instance of an executable file containing multiple 
  102. --- RECORDSEPARATOR ---
  103. data segments that were not marked read-only. 
  104. --- RECORDSEPARATOR ---
  105. 19 
  106. --- RECORDSEPARATOR ---
  107. Attempt was made to load a compressed executable file. The file must be 
  108. --- RECORDSEPARATOR ---
  109. decom
  110. --- RECORDSEPARATOR ---
  111. pressed before it can be loaded. 
  112. --- RECORDSEPARATOR ---
  113. 20 
  114. --- RECORDSEPARATOR ---
  115. Dynamic-link library (DLL) file was invalid. One of the DLLs required to run this 
  116. --- RECORDSEPARATOR ---
  117. application was corrupt. 
  118. --- RECORDSEPARATOR ---
  119. 21 
  120. --- RECORDSEPARATOR ---
  121. Application requires 32-bit extensions. 
  122. --- RECORDSEPARATOR ---
  123. 26 
  124. --- RECORDSEPARATOR ---
  125. A sharing violation occurred. 
  126. --- RECORDSEPARATOR ---
  127. 27 
  128. --- RECORDSEPARATOR ---
  129. The filename association is incomplete or invalid. 
  130. --- RECORDSEPARATOR ---
  131. 29 
  132. --- RECORDSEPARATOR ---
  133. The DDE transaction failed. 
  134. --- RECORDSEPARATOR ---
  135. 30 
  136. --- RECORDSEPARATOR ---
  137. The DDE transaction could not be completed because other DDE transactions were 
  138. --- RECORDSEPARATOR ---
  139. being processed. 
  140. --- RECORDSEPARATOR ---
  141. 31 
  142. --- RECORDSEPARATOR ---
  143. There is no application associated with the given filename extension.
  144. --- RECORDSEPARATOR ---
  145.  
  146. --- RECORDSEPARATOR ---
  147. Examples:
  148. --- RECORDSEPARATOR ---
  149.  
  150. --- RECORDSEPARATOR ---
  151. Director: 
  152. --- RECORDSEPARATOR ---
  153. set OK = baPrintFile( the pathName & "test.txt" ) 
  154. --- RECORDSEPARATOR ---
  155. Authorware: 
  156. --- RECORDSEPARATOR ---
  157. OK := baPrintFile( FileLocation ^ "test.txt" )
  158. --- RECORDSEPARATOR ---
  159.  
  160. --- RECORDSEPARATOR ---
  161. Notes:
  162. --- RECORDSEPARATOR ---
  163.  
  164. --- RECORDSEPARATOR ---
  165. On
  166. --- RECORDSEPARATOR ---
  167.  Macintosh
  168. --- RECORDSEPARATOR ---
  169. , an error will always return an error value of 0.
  170. --- RECORDSEPARATOR ---
  171.  
  172. --- RECORDSEPARATOR ---
  173. See also:
  174. --- RECORDSEPARATOR ---
  175.  
  176. --- RECORDSEPARATOR ---
  177. baOpenFile